package com.wv.api.server.basic;

import com.wv.api.service.basic.IBasicBuildingStructureService;
import com.wv.common.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "楼栋结构信息相关")
@RequestMapping("/buildStructure")
public class BasicBuildingStructureController {

    @Autowired
    private IBasicBuildingStructureService iBasicBuildingStructureService;

    @GetMapping("/treeData")
    @ApiOperation("获取楼栋结构树状信息")
    public Result getTreeData() {
        return iBasicBuildingStructureService.getTreeData();
    }
}
